package chap_2_elementary_programming;

import java.util.Scanner;

public class Listing_2_4_computeAreaWithConstant {
	public static void main(String[] args) {
		final double PI = 3.1415926;
		double radius;
		double area;
		Scanner input = new Scanner(System.in);
		System.out.println("Please input the radius: ");
		radius = input.nextDouble();
		area = PI * radius * radius;
		System.out.println("The radius is: " + radius + ", area = " + area);
		input.close();
	}
}
